<?php

namespace app\admin\controller\food;

use app\common\controller\Backend;

class Supplier extends Backend{
    /**
     * Company模型对象
     */
    protected $model = null;


    protected $communityModel = null;
    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('food');
        $this->communityModel = model('Community');
        $this->view->assign('community',$this->communityModel->where(array('code'=>array('in',parent::getCommunityIdByAuth())))->field('code,name')->select());
    }
}